package com.yx.auto.controller;

import com.yx.auto.http.ClientHttp;
import com.yx.auto.service.HttpService;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.FileNotFoundException;

/**
 * @author yinxing
 * @date 2022-08-23
 */
@RestController
public class DemoController {

    @Resource
    private HttpService httpService;

    /**
     * szy
     *
     * @return
     * @throws FileNotFoundException
     */
    @RequestMapping("/szy")
    public String login() throws FileNotFoundException {
        httpService.login();
        httpService.caseHttp("szy.yml", "getEbookDeptInfo");
        httpService.caseHttp("demo.yml", "getPersonalDetailfromebook");
        return "Success";
    }



}
